package com.woniu.shop.service;

import com.woniu.entity.Result;
import com.woniu.shop.entity.dto.CashOutDTO;
import com.woniu.shop.entity.dto.EditShopMesDTO;
import com.woniu.shop.entity.dto.ShopLoginDTO;
import com.woniu.entity.PageResult;
import com.woniu.entity.PageResult;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.shop.pojo.Shop;
import com.woniu.shop.entity.dto.ShopDTO;

import java.util.Map;

/**
 * <p>
 * 门店表 服务类
 * </p>
 *
 * @author LiFangyu
 * @since 2023-02-15
 */
public interface IShopService extends IService<Shop> {

    /**
     *
     * @param shopLoginDTO 登录数据
     * @return 返回门店数据
     */
    Map<String, Object> shopLogin(ShopLoginDTO shopLoginDTO);

    /**
     *
     * @param editShopMesDTO 拟修改门店信息模型
     * @return 修改的行记录数
     */
    int editShopMessage(EditShopMesDTO editShopMesDTO);

    PageResult<Shop> querySearch(Integer currentPage, Integer pageSize, ShopDTO shopDTO);

    /**
     *
     * @param cashOutDTO 提现数据
     * @return 提现结果
     */
    Result<Object> cashOut(CashOutDTO cashOutDTO);
}
